package a.j;

import a.c.ab;
import a.c.d;
import a.c.e;
import a.c.m;
import a.d.t;
import a.d.w;
import a.e.b.n;

import java.awt.*;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.*;

public class jd
  implements n
{
  private static final e_ a = new e_(null);
  private static final ne b = new ne();
  ld c = null;
  ee d;
  b_ e;
  boolean f;
  Object g;
  static Class h;
  static Class i;
  static Class j;
  static Class k;
  static Class l;
  static Class m;
  static Class n;
  public static boolean o;
  
  public jd()
  {
    this.d = rd.g;
    this.e = n().c();
    this.f = false;
    this.g = null;
  }
  
  public jd(jd paramjd)
  {
    this.d = paramjd.d;
    this.e = paramjd.e;
    this.f = paramjd.f;
    if (!bool) {
      if (this.e.i == null)
      {
        if (bool) {
          break label88;
        }
        this.g = paramjd.g;
        if (!ld.D) {
          return;
        }
      }
    }
    label88:
    this.g = this.e.i.a(paramjd, paramjd.g, this);
  }
  
  public jd a()
  {
    return a(this);
  }
  
  public jd a(jd paramjd)
  {
    return new jd(paramjd);
  }
  
  protected void a(ld paramld)
  {
    this.c = paramld;
  }
  
  public ld b()
  {
    return this.c;
  }
  
  public void a(d paramd)
  {
    a(e(paramd));
  }
  
  public void a(tb paramtb)
  {
    a(this, paramtb);
  }
  
  public static void a(jd paramjd, d paramd)
  {
    a(paramjd, e(paramd));
  }
  
  public static void a(jd paramjd, tb paramtb)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramjd == null)
      {
        if (bool2) {
          break label36;
        }
        paramtb.h = null;
        if (!bool1) {
          return;
        }
      }
    }
    label36:
    Object localObject = e(paramjd);
    if (!bool2)
    {
      if (localObject != null)
      {
        paramtb.h = localObject;
        paramtb.a(c(paramjd));
      }
    }
    else if (!bool1) {
      return;
    }
    throw new IllegalArgumentException("NodePort not in NodeRealizer.");
  }
  
  public static jd b(d paramd)
  {
    return b(e(paramd));
  }
  
  public static jd b(tb paramtb)
  {
    return a(paramtb, true);
  }
  
  public void c(d paramd)
  {
    c(e(paramd));
  }
  
  public void c(tb paramtb)
  {
    b(this, paramtb);
  }
  
  public static void b(jd paramjd, d paramd)
  {
    b(paramjd, e(paramd));
  }
  
  public static void b(jd paramjd, tb paramtb)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if (paramjd == null)
      {
        if (bool2) {
          break label36;
        }
        paramtb.i = null;
        if (!bool1) {
          return;
        }
      }
    }
    label36:
    Object localObject = e(paramjd);
    if (!bool2)
    {
      if (localObject != null)
      {
        paramtb.i = localObject;
        paramtb.b(c(paramjd));
      }
    }
    else if (!bool1) {
      return;
    }
    throw new IllegalArgumentException("NodePort not in NodeRealizer.");
  }
  
  public static jd d(d paramd)
  {
    return d(e(paramd));
  }
  
  public static jd d(tb paramtb)
  {
    return a(paramtb, false);
  }
  
  private static jd a(tb paramtb, boolean paramBoolean)
  {
    Object localObject = paramBoolean ? paramtb.h : paramtb.i;
    if (localObject != null)
    {
      g localg = paramtb.j();
      if (localg != null)
      {
        ld localld = paramBoolean ? paramtb.h() : paramtb.g();
        return localld.a(localObject);
      }
    }
    return null;
  }
  
  public m c()
  {
    return a(true, true).l();
  }
  
  public m d()
  {
    return a(true, false).l();
  }
  
  public m e()
  {
    return a(false, true).l();
  }
  
  private ab a(boolean paramBoolean1, boolean paramBoolean2)
  {
    ab localab = new ab();
    ld localld = b();
    if (localld != null)
    {
      Object localObject = e(this);
      e locale = localld.n();
      if ((locale != null) && (locale.c() > 0) && (locale.g() != null))
      {
        g localg = localld.S();
        HashSet localHashSet = new HashSet();
        m localm;
        tb localtb;
        if (paramBoolean1)
        {
          localm = locale.m();
          while (localm.e())
          {
            localtb = localg.t(localm.a());
            if ((localObject == localtb.i) && (localHashSet.add(localm.a()))) {
              localab.add(localm.a());
            }
            localm.f();
          }
        }
        if (paramBoolean2)
        {
          localm = locale.n();
          while (localm.e())
          {
            localtb = localg.t(localm.a());
            if ((localObject == localtb.h) && (localHashSet.add(localm.a()))) {
              localab.add(localm.a());
            }
            localm.f();
          }
        }
      }
    }
    return localab;
  }
  
  public static void b(jd paramjd)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    ld localld = paramjd.b();
    if (!bool2) {
      if (localld == null) {
        return;
      }
    }
    g localg = localld.S();
    e locale = localld.n();
    if ((localg != null) && (locale.c() > 0))
    {
      localObject = paramjd.c();
      do
      {
        if (!((m)localObject).e()) {
          break;
        }
        localg.a(((m)localObject).a());
        ((m)localObject).f();
      } while (!bool1);
    }
    Object localObject = ce.a(paramjd).iterator();
    if (((Iterator)localObject).hasNext()) {}
    while (bool2)
    {
      localld.c((jg)((Iterator)localObject).next());
      if ((!bool2) && (bool1)) {
        return;
      }
      if (!bool1) {
        break;
      }
    }
    localld.d(paramjd);
  }
  
  public boolean f()
  {
    return this.f;
  }
  
  public void a(boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool)
    {
      if (this.f != paramBoolean) {
        this.f = paramBoolean;
      }
    }
    else
    {
      ld localld = b();
      if ((bool) || (localld != null))
      {
        g localg = localld.S();
        if ((bool) || (localg != null)) {
          localg.k(this);
        }
      }
      if ((bool) || (this.e.g != null)) {
        this.e.g.a(this);
      }
    }
  }
  
  public ee g()
  {
    return this.d;
  }
  
  public void a(ee paramee)
  {
    this.d = paramee;
    i();
  }
  
  public w h()
  {
    ee localee = g();
    return localee.a().a(this, localee);
  }
  
  void i()
  {
    if (e(this) != null)
    {
      j();
      k();
    }
  }
  
  private void j()
  {
    Iterator localIterator = ce.a(this).iterator();
    while (localIterator.hasNext()) {
      ((jg)localIterator.next()).p();
    }
  }
  
  private void k()
  {
    g localg = b().S();
    if (localg != null)
    {
      w localw = c(this);
      m localm = e();
      tb localtb;
      while (localm.e())
      {
        localtb = localg.t(localm.a());
        localtb.a(localw);
        localm.f();
      }
      localm = d();
      while (localm.e())
      {
        localtb = localg.t(localm.a());
        localtb.b(localw);
        localm.f();
      }
    }
  }
  
  public Object l()
  {
    return this.g;
  }
  
  public void a(Object paramObject)
  {
    this.g = paramObject;
  }
  
  public String m()
  {
    return this.e.a;
  }
  
  public void a(String paramString)
  {
    n().a(this, paramString);
  }
  
  public static e_ n()
  {
    return a;
  }
  
  static jd a(g paramg, d paramd, boolean paramBoolean)
  {
    return a(paramg.t(paramd), paramBoolean);
  }
  
  static w c(jd paramjd)
  {
    w localw = paramjd.h();
    ld localld = paramjd.b();
    return new w(localw.a() - localld.A(), localw.b() - localld.B());
  }
  
  static void a(jd paramjd, w paramw)
  {
    a(paramjd, paramw.a(), paramw.b());
  }
  
  static void a(jd paramjd, double paramDouble1, double paramDouble2)
  {
    ld localld = paramjd.b();
    b(paramjd, localld.A() + paramDouble1, localld.B() + paramDouble2);
  }
  
  static void b(jd paramjd, double paramDouble1, double paramDouble2)
  {
    ee localee = paramjd.g();
    paramjd.a(localee.a().a(paramjd.b(), new w(paramDouble1, paramDouble2)));
  }
  
  static Rectangle2D d(jd paramjd)
  {
    t localt = paramjd.o();
    return new Rectangle2D.Double(localt.d(), localt.e(), localt.b(), localt.c());
  }
  
  static Object e(jd paramjd)
  {
    ld localld = paramjd.b();
    return localld == null ? null : localld.e(paramjd);
  }
  
  static int f(jd paramjd)
  {
    boolean bool = ld.D;
    ld localld = paramjd.b();
    if (localld != null)
    {
      int i1 = 0;
      Iterator localIterator = localld.z();
      do
      {
        if (!localIterator.hasNext()) {
          break;
        }
        if (localIterator.next() == paramjd) {
          return i1;
        }
        i1++;
      } while (!bool);
    }
    return -1;
  }
  
  static jd a(ld paramld, double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Object localObject = null;
    int i1 = paramld.y();
    if (i1 > 0)
    {
      double d1 = (1.0D / 0.0D);
      int i2 = i1;
      do
      {
        do
        {
          jd localjd;
          double d2;
          do
          {
            if (i2-- <= 0) {
              break;
            }
            localjd = paramld.c(i2);
            w localw = localjd.h();
            d2 = a(localw.a(), localw.b(), paramDouble1, paramDouble2);
          } while (d1 <= d2);
          d1 = d2;
          if (!bool2)
          {
            if ((bool2) || (bool1)) {
              break label118;
            }
            localObject = localjd;
          }
        } while (bool2);
      } while (!bool1);
    }
    label118:
    return localObject;
  }
  
  static double a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
  {
    double d1 = paramDouble1 - paramDouble3;
    double d2 = paramDouble2 - paramDouble4;
    return d1 * d1 + d2 * d2;
  }
  
  static boolean a(jd paramjd, ld paramld)
  {
    return a(paramjd.b(), paramld);
  }
  
  static boolean a(ld paramld1, ld paramld2)
  {
    boolean bool = ld.E;
    return ((!bool) && (paramld1 == paramld2)) || (((bool) || ((paramld2 instanceof qd))) && (paramld1 == ((qd)paramld2).i()));
  }
  
  static tb e(d paramd)
  {
    return ((g)paramd.c()).t(paramd);
  }
  
  public boolean a(double paramDouble1, double paramDouble2)
  {
    if (!ld.E) {
      if (this.e.c == null) {
        return b.a(this, paramDouble1, paramDouble2);
      }
    }
    return this.e.c.a(this, paramDouble1, paramDouble2);
  }
  
  public boolean a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, Point2D paramPoint2D)
  {
    if (!ld.E) {
      if (this.e.d == null) {
        return b.a(this, paramDouble1, paramDouble2, paramDouble3, paramDouble4, paramPoint2D);
      }
    }
    return this.e.d.a(this, paramDouble1, paramDouble2, paramDouble3, paramDouble4, paramPoint2D);
  }
  
  public void a(Graphics2D paramGraphics2D)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (this.e.b == null)
      {
        if (bool) {
          break label45;
        }
        b.a(this, paramGraphics2D);
        if (!ld.D) {
          return;
        }
      }
    }
    label45:
    this.e.b.a(this, paramGraphics2D);
  }
  
  public t o()
  {
    if (!ld.E) {
      if (this.e.e == null) {
        return b.a(this);
      }
    }
    return this.e.e.a(this);
  }
  
  public void a(Rectangle2D paramRectangle2D)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (this.e.j == null)
      {
        if (bool) {
          break label45;
        }
        b.a(this, paramRectangle2D);
        if (!ld.D) {
          return;
        }
      }
    }
    label45:
    this.e.j.a(this, paramRectangle2D);
  }
  
  static boolean a(jd paramjd, Graphics2D paramGraphics2D)
  {
    boolean bool = ld.E;
    if ((bool) || (paramjd.f())) {
      if (bool) {}
    }
    return kg.b(paramGraphics2D);
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  public static abstract interface j_
  {
    public abstract Object a(jd paramjd1, Object paramObject, jd paramjd2);
  }
  
  public static abstract interface i_
  {
    public abstract void a(jd paramjd, Rectangle2D paramRectangle2D);
  }
  
  public static abstract interface h_
  {
    public abstract void a(jd paramjd);
  }
  
  public static abstract interface c_
  {
    public abstract t a(jd paramjd);
  }
  
  public static abstract interface g_
  {
    public abstract void a(jd paramjd, Graphics2D paramGraphics2D);
  }
  
  public static abstract interface f_
  {
    public abstract boolean a(jd paramjd, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, Point2D paramPoint2D);
  }
  
  public static abstract interface d_
  {
    public abstract boolean a(jd paramjd, double paramDouble1, double paramDouble2);
  }
  
  private static final class b_
  {
    final String a;
    jd.g_ b;
    jd.d_ c;
    jd.f_ d;
    jd.c_ e;
    jd.h_ g;
    jd.j_ i;
    jd.i_ j;
    
    b_(String paramString)
    {
      this.a = paramString;
    }
  }
  
  public static final class e_
  {
    final Map a = new HashMap();
    final Set b = Collections.unmodifiableSet(this.a.keySet());
    final jd.b_ c = new jd.b_("DEFAULT");
    public static boolean d;
    
    private e_() {}
    
    public Map a()
    {
      return new HashMap();
    }
    
    public void a(String paramString, Map paramMap)
    {
      boolean bool = ld.E;
      jd.b_ localb_ = new jd.b_(paramString);
      if (!bool) {}
      localb_.b = ((jd.g_)paramMap.get(jd.h == null ? (jd.h = jd.b("a.j.jd$g_")) : jd.h));
      if (!bool) {}
      localb_.c = ((jd.d_)paramMap.get(jd.i == null ? (jd.i = jd.b("a.j.jd$d_")) : jd.i));
      if (!bool) {}
      localb_.d = ((jd.f_)paramMap.get(jd.j == null ? (jd.j = jd.b("a.j.jd$f_")) : jd.j));
      if (!bool) {}
      localb_.e = ((jd.c_)paramMap.get(jd.k == null ? (jd.k = jd.b("a.j.jd$c_")) : jd.k));
      if (!bool) {}
      localb_.g = ((jd.h_)paramMap.get(jd.l == null ? (jd.l = jd.b("a.j.jd$h_")) : jd.l));
      if (!bool) {}
      localb_.i = ((jd.j_)paramMap.get(jd.m == null ? (jd.m = jd.b("a.j.jd$j_")) : jd.m));
      if (!bool) {}
      localb_.j = ((jd.i_)paramMap.get(jd.n == null ? (jd.n = jd.b("a.j.jd$i_")) : jd.n));
      this.a.put(paramString, localb_);
    }
    
    public void a(String paramString)
    {
      this.a.remove(paramString);
    }
    
    public Set b()
    {
      return this.b;
    }
    
    public void a(jd paramjd, String paramString)
    {
      boolean bool = ld.E;
      jd.b_ localb_ = (jd.b_)this.a.get(paramString);
      if (!bool)
      {
        if (localb_ == null) {
          throw new IllegalArgumentException("NodePort configuration does not exist: \"" + paramString + "\"");
        }
        if (bool) {}
      }
      else if (paramjd.e == localb_)
      {
        return;
      }
      paramjd.e = localb_;
    }
    
    public Object a(String paramString, Class paramClass)
    {
      boolean bool = ld.E;
      jd.b_ localb_ = (jd.b_)this.a.get(paramString);
      if (localb_ != null)
      {
        if (!bool) {}
        if (paramClass == (jd.h == null ? (jd.h = jd.b("a.j.jd$g_")) : jd.h)) {
          return localb_.b;
        }
        if (!bool) {}
        if (paramClass == (jd.i == null ? (jd.i = jd.b("a.j.jd$d_")) : jd.i)) {
          return localb_.c;
        }
        if (!bool) {}
        if (paramClass == (jd.j == null ? (jd.j = jd.b("a.j.jd$f_")) : jd.j)) {
          return localb_.d;
        }
        if (!bool) {}
        if (paramClass == (jd.k == null ? (jd.k = jd.b("a.j.jd$c_")) : jd.k)) {
          return localb_.e;
        }
        if (!bool) {}
        if (paramClass == (jd.l == null ? (jd.l = jd.b("a.j.jd$h_")) : jd.l)) {
          return localb_.g;
        }
        if (!bool) {}
        if (paramClass == (jd.m == null ? (jd.m = jd.b("a.j.jd$j_")) : jd.m)) {
          return localb_.i;
        }
        if (!bool) {}
        if (paramClass == (jd.n == null ? (jd.n = jd.b("a.j.jd$i_")) : jd.n)) {
          return localb_.j;
        }
      }
      return null;
    }
    
    jd.b_ c()
    {
      return this.c;
    }
    
    e_(jd.0 param0)
    {
      this();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.jd

 * JD-Core Version:    0.7.0.1

 */